package com.hero.basicsystem.dao.ibatis;

import com.hero.basicsystem.dao.ISystemcodesortDAO;
import com.hero.basicsystem.entity.Systemcodesort;
import com.hero.basicsystem.entity.SystemcodesortExample;
import com.hero.basicsystem.entity.SystemcodesortKey;
import com.hero.web.dao.IbatisBaseDao;
import java.util.List;

public class SystemcodesortDAOImpl extends IbatisBaseDao<Systemcodesort, SystemcodesortExample> implements ISystemcodesortDAO {

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table systemcodesort11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public SystemcodesortDAOImpl() {
        super();
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table systemcodesort11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int countByExample(SystemcodesortExample example) {
        Integer count = (Integer)  getSqlMapClientTemplate().queryForObject("systemcodesort.ibatorgenerated_countByExample", example);
        return count;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table systemcodesort11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int deleteByExample(SystemcodesortExample example) {
        int rows = getSqlMapClientTemplate().delete("systemcodesort.ibatorgenerated_deleteByExample", example);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table systemcodesort11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int deleteByPrimaryKey(SystemcodesortKey key) {
        int rows = getSqlMapClientTemplate().delete("systemcodesort.ibatorgenerated_deleteByPrimaryKey", key);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table systemcodesort11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public void insert(Systemcodesort record) {
        getSqlMapClientTemplate().insert("systemcodesort.ibatorgenerated_insert", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table systemcodesort11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public void insertSelective(Systemcodesort record) {
        getSqlMapClientTemplate().insert("systemcodesort.ibatorgenerated_insertSelective", record);
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table systemcodesort11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    @SuppressWarnings("unchecked")
    public List<Systemcodesort> selectByExample(SystemcodesortExample example) {
        List<Systemcodesort> list = getSqlMapClientTemplate().queryForList("systemcodesort.ibatorgenerated_selectByExample", example);
        return list;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table systemcodesort11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public Systemcodesort selectByPrimaryKey(SystemcodesortKey key) {
        Systemcodesort record = (Systemcodesort) getSqlMapClientTemplate().queryForObject("systemcodesort.ibatorgenerated_selectByPrimaryKey", key);
        return record;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table systemcodesort11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int updateByExampleSelective(Systemcodesort record, SystemcodesortExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("systemcodesort.ibatorgenerated_updateByExampleSelective", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table systemcodesort11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int updateByExample(Systemcodesort record, SystemcodesortExample example) {
        UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
        int rows = getSqlMapClientTemplate().update("systemcodesort.ibatorgenerated_updateByExample", parms);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table systemcodesort11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int updateByPrimaryKeySelective(Systemcodesort record) {
        int rows = getSqlMapClientTemplate().update("systemcodesort.ibatorgenerated_updateByPrimaryKeySelective", record);
        return rows;
    }

    /**
     * This method was generated by Apache iBATIS ibator.
     * This method corresponds to the database table systemcodesort11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    public int updateByPrimaryKey(Systemcodesort record) {
        int rows = getSqlMapClientTemplate().update("systemcodesort.ibatorgenerated_updateByPrimaryKey", record);
        return rows;
    }

    /**
     * This class was generated by Apache iBATIS ibator.
     * This class corresponds to the database table systemcodesort11
     *
     * @ibatorgenerated Sun Jun 12 08:41:53 GMT 2011
     */
    private static class UpdateByExampleParms extends SystemcodesortExample {
        private Object record;

        public UpdateByExampleParms(Object record, SystemcodesortExample example) {
            super(example);
            this.record = record;
        }

        public Object getRecord() {
            return record;
        }
    }
}